package com.ruoyi.common.filter.constants;

import org.springframework.stereotype.Component;

/**
 * @description:
 * @author:
 * @date: 2021-08-16
 */
@Component
public class GatewayConstant {

    /**
     * 签名方式
     */
    public static final String SIGN_TYPE_RSA = "RSA";
    public static final String SIGN_TYPE_MD5 = "MD5";

    /**
     * 请求头参数名
     */
    public static final String REQ_HEAD_PARAM_APP_ID = "appId";
    public static final String REQ_HEAD_PARAM_USER_ID = "userId";
    public static final String REQ_HEAD_PARAM_CLIENT_TYPE = "clientType";
    public static final String REQ_HEAD_PARAM_CLIENT_VERSION = "clientVersion";
    public static final String REQ_HEAD_PARAM_SIGN_TYPE = "signType";
    public static final String REQ_HEAD_PARAM_SIGN = "sign";
    public static final String REQ_HEAD_PARAM_TIMESTAMP = "timestamp";
    public static final String REQ_HEAD_PARAM_EXTRA = "extra";

    /**
     * 请求Body的缓存Key
     */
    public static final String CACHE_REQUEST_BODY_OBJECT_KEY = "CacheRequestBodyObjectKey";

    /**
     * 空字符串
     */
    public static final String NULL_STRING = "null";

}
